package com.wechat.shopping.mall.category.service;

import com.wechat.shopping.mall.util.ResponseMessage;

public interface CategoryService {
    /**
     * 创建分类
     * @param categoryName
     * @param type
     * @param parentId
     * @return
     */
    ResponseMessage saveCategory(String categoryName, Byte type, Integer parentId);

    /**
     * 分类编辑
     * @param id
     * @param categoryName
     * @return
     */
    int editCategory(Integer id, String categoryName);

    /**
     * 商品分类删除
     * @param id
     * @return
     */
    int deleteCategory(Integer id);

    /**
     * 获取某一层菜单
     * @param categoryId
     * @param type
     * @return
     */
    ResponseMessage getCategories(Integer categoryId, Byte type);

    /**
     * 获取商品信息
     * @param goodId
     * @return
     */
    ResponseMessage getGoodById(Integer goodId);
}
